
class Dog{
     String name;
    int age;
    String color;

    public static String getSex() {
        return sex;
    }

    public static void setSex(String sex) {
        Dog.sex = sex;
    }

    public static String sex = "boy";
    public Dog(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void bark(){
        System.out.println(this.name + "正在汪汪叫...");
    }

    public void eat(){
        System.out.println(this.name + "正在吃吃吃....");
    }

}

public class test {
    public static void main(String[] args) {
        Dog dog1 = new Dog("dahuang",11,"huangse");
        dog1.name = "阿黄";
        dog1.color = "黑黄";
        dog1.bark();
        dog1.eat();
        //System.out.println(Dog.sex);
        //System.out.println(dog1.sex);
        Dog dog2 = new Dog("xiaohuang",13,"baise");
    }
}


class Date {
    public int year;
    public int month;
    public int day;

    public void setDay(Date this,int y, int m, int d) {
        this.year = y;
        this.month = m;
        this.day = d;
    }

    public void printDate(Date this) {
        System.out.println(year + "/" + month + "/" + day);
    }
}